package com.yu.gulimall.product.feign;

import com.yu.common.dto.SkusReduceInfoDto;
import com.yu.common.utils.R;
import com.yu.common.dto.SpuBoundsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    R saveBopondTo(@RequestBody SpuBoundsDto spuBoundsDto);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveRecuceSkuInfo(@RequestBody SkusReduceInfoDto skusReduceInfoDto);
}
